﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Markup;
using Yxinmt.Controls;
using Yxinmt.Entity;
using Yxinmt.Interface;
using Yxinmt.Utility;

namespace Yxinmt.Windows.Meeting
{
    public class MeetingNotice : BaseWindow, IWindow
    {
        public Index _Index { get; set; }
        public MeetingNotice(Window window, Dictionary<string, object> parameters)
        {
            Window = window;
            _Parameters = parameters;
            _Index = parameters.GetValue<Index>("Index");

            InitSet(GetType().Name);

            initView();

            this.SetWindow();

            initLoad();
        }

        public Action Close2 { get; set; }

        void initView()
        {

        }

        public void Close3(IControl ctl)
        {
            this.Window.Close();
            Close2();
        }

        void initLoad()
        {

        }

        public void SetNotice(Dictionary<string, object> parameters)
        {
            _Parameters = parameters;
        }
    }
}
